﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VINETLIFE.BL;
using VINETLIFE.DO;
using System.Web.UI.HtmlControls;

namespace VINETLIFE
{
    public partial class Videos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rptImagesDataSource();

                Page.Title = "Video | " + Ultility.WebTitle();

                sysConfigDO objConfig = new sysConfigDO();
                objConfig.ConfigID = 2;

                objConfig = new sysConfigBL().Select(objConfig);


                HtmlMeta metaKey = new HtmlMeta();
                metaKey.Name = "keywords";
                metaKey.Content = objConfig.ConfigValue;
                Page.Header.Controls.Add(metaKey);


                objConfig.ConfigID = 3;
                objConfig = new sysConfigBL().Select(objConfig);
                HtmlMeta metaDesc = new HtmlMeta();
                metaDesc.Name = "description";
                metaDesc.Content = objConfig.ConfigValue;
                Page.Header.Controls.Add(metaDesc);
            }

        }
        protected void rptImagesDataSource()
        {
            rptImages.DataSource = new cmsAlbumBL().GetByType(false);
            rptImages.DataBind();
        }

        public string Change_AV(string s)
        {
            return Ultility.Change_AV(s);
        }
    }
}